package com.e7.streams;

/**
 * A stream which suppresses all null values!
 * @author detlev
 * @param <E> The type of the elements
 */
public class NotNullStream<E> extends FilteredStream<E> {

  public NotNullStream(Stream<E> stream) {
    super(stream, new Predicate<E>() {
      public boolean value(E object) {
        return null != object;
      }});
  }

}
